package com.xinyou.u8c.controller;


import com.xinyou.u8c.result.JsonResult;
import com.xinyou.u8c.service.IDwsbService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author chq
 * @since 2023-08-23
 */
@RestController
@RequestMapping("/u8c/dwsb")
public class DwsbController {

    @Autowired
    private IDwsbService dwsbService;

    @PostMapping("/getList")
    public JsonResult getList() {
        return new JsonResult(true, dwsbService.list());
    }
}
